/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class ChildrenRidingVehicle {
    static categoryCode = '010070051';

    static categoryName = '儿童骑乘车';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return ChildrenRidingVehicle.categoryCode;
    }

    get categoryName() {
        return ChildrenRidingVehicle.categoryName;
    }

    getEnduranceMileage(params) {
        return command({
            method: 'getEnduranceMileage',
            methodId: 'p1vZRbbm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGpsPosition(params) {
        return command({
            method: 'getGpsPosition',
            methodId: 'pGoxIHW5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOnceMileage(params) {
        return command({
            method: 'getOnceMileage',
            methodId: 'pDrhTqfP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOnceRidetime(params) {
        return command({
            method: 'getOnceRidetime',
            methodId: 'pgh0Hkpw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSignalIntensity(params) {
        return command({
            method: 'getSignalIntensity',
            methodId: 'pZguniMl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pUPQlywK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSearch(params) {
        return command({
            method: 'setSearch',
            methodId: 'ppAXPjZM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3fO2n',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default ChildrenRidingVehicle;
